<!DOCTYPE html>
<html>
<head>
<title> HackedPixels.de </title>
<!-- Enable syntax highlighting. -->
<link rel="stylesheet" href="css/ft-syntax-highlight.css">
<link rel="stylesheet" href="css/style.css">
<!-- Enable the warning, sidebar, fancy graphics -->
<link rel="stylesheet" href="css/w3.css">
</head>
<body>
<div class="w3-bar w3-black">
	<a href="index.html" class="w3-bar-item w3-button">Home</a>

	<div class="w3-dropdown-hover">
		<button class="w3-button">Content</button>
		<div class="w3-dropdown-content w3-bar-block w3-card-4">
			<a class="w3-bar-item w3-button" href="linux_on_mac.html">Gentoo</a>
			<a class="w3-bar-item w3-button" href="interesting_stuff.html">Emporium O'Stuff</a>
		</div>
        </div>

	<a href="download_stuff.html" class="w3-bar-item w3-button">Download</a>
</div>
<div class="w3-container" style="padding-left:10%">
<header>
Installing Gentoo/Linux on a late 2013 Macbook
</header>

﻿<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>RunningGentoo</title>
  <link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>

<body class="stackedit">
  <div class="stackedit__html"><h1 id="running-gentoo-on-a-late-2013-macbook-pro">Running Gentoo on a late 2013 macbook pro</h1>
<pre><code>     .vir.                                d$b
  .d$$$$$$b.    .cd$$b.     .d$$b.   d$$$$$$$$$$$b  .d$$b.      .d$$b.
  $$$$( )$$$b d$$$()$$$.   d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b.  .$$$$$$$b.
  Q$$$$$$$$$$B$$$$$$$$P"  d$$$PQ$$$$b.   $$$$.   .$$$P' `$$$ .$$$P' `$$$
    "$$$$$$$P Q$$$$$$$b  d$$$P   Q$$$$b  $$$$b   $$$$b..d$$$ $$$$b..d$$$
   d$$$$$$P"   "$$$$$$$$ Q$$$     Q$$$$  $$$$$   `Q$$$$$$$P  `Q$$$$$$$P
  $$$$$$$P       `"""""   ""        ""   Q$$$P     "Q$$$P"     "Q$$$P"
  `Q$$P"                                  """
</code></pre>
<blockquote>
<p>Disclaimer: This is mostly a notebook for myself. Nothing is guranteed to work.</p>
</blockquote>

<table>
<thead>
<tr>
<th>List of Content</th>
<th>What it deals with</th>
</tr>
</thead>
<tbody>
<tr>
<td>1. <a href="#setup_network">Networking</a></td>
<td>Broadcom network driver and dhcp client</td>
</tr>
<tr>
<td>2. <a href="#setup_audio">Audio</a></td>
<td>Get the Audio System to work and <br> turn off the optical audio</td>
</tr>
<tr>
<td>3. <a href="">Xserver</a></td>
<td>Setup the Xserver, get a GUI working <strong>[Required for 4]</strong></td>
</tr>
<tr>
<td>4. <a href="">Keyboard</a></td>
<td>Get the brightness/keyboard light keys to work</td>
</tr>
<tr>
<td>5. <a href="">Usability</a></td>
<td></td>
</tr>
</tbody>
</table><h2 id="setting-it-up">Setting it up</h2>
<p>I’m using ZFS.<br>
A very good guide is <a href="https://wiki.gentoo.org/wiki/User:FearedblissA/Installing_Gentoo_Linux_On_ZFS">here</a>.<br>
(READ <strong><a href="#setup_network">Networking</a></strong> before rebooting!)</p>
<h2 id="setup_network">Networking</h2>
<p>To have (wireless) network:<br>
<code>(chroot) # emerge --fetchonly net-misc/dhcpcd</code></p>
<p>Run <code>(chroot) # lspci -nn -d14e4:</code><br>
If the output is:</p>
<blockquote>
<p>02:00.0 Multimedia controller [0480]: Broadcom Limited 720p FaceTime HD Camera [14e4:1570]<br>
03:00.0 Network controller [0280]: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)</p>
</blockquote>
<p>You need to install the broadcom-wl driver (which is horrible):<br>
<code>(chroot) # git clone https://github.com/antoineco/broadcom-wl.git</code><br>
or <a href="https://www.ebay.com/p/Apple-MacBook-Air-A1465-OEM-Broadcom-BCM94360CS2-WiFi-Card-Genuine/1564886357">buy a compatible wifi card</a> that is supported by the <strong>brcsmac</strong> driver.</p>
<p>Otherwise, you’re good to go with the <strong>linux-firmware</strong> package.</p>
<h4 id="after-reboot">After reboot:</h4>
<p>Build <strong><a href="https://packages.gentoo.org/packages/net-misc/dhcpcd">dhcpcd</a></strong>:<br>
<code>$ sudo emerge net-misc/dhcpcd</code><br>
This should say something like:</p>
<blockquote>
<p><em>Unpacking tar…</em></p>
</blockquote>
<p>If not, you forgot to fetch the dhcpcd source code, in this case go to a computer that has network and simply pull the distfiles for dhcpcd from Portage. (and of course copy them to the target via USB)</p>
<h2 id="setup_audio">Audio</h2>
<ol>
<li>Install alsa and pulseaudio:<br>
<code># emerge --ask --autounmask-write alsa-utils pulseaudio</code><br>
(<code># etc-update</code>)</li>
<li>Add your user to the <code>audio</code> group<br>
<code># usermod -G audio -a larry</code></li>
<li>{optional} Turn off the red light<br>
<code># echo "1" &gt; /sys/module/snd_hda_intel/parameters/power_save</code></li>
</ol>
<h2 id="setup_xorg">XServer</h2>
<ol>
<li>Download and Install Xserver<br>
<code># emerge --ask --autounmask-write x11-base/xorg-base</code><br>
(<code># etc-update</code>)</li>
<li>[optional]</li>
</ol>
</div>
</body>

</html>
<footer>
	<h6>
	Made with 
	<a class="w3-button w3-round-xlarge w3-padding-small w3-border" href="https://www.google.com/search?client=firefox-b-ab&biw=2558&bih=1494&tbm=isch&sa=1&ei=FemdW47VJYvsrgTF_oSQCA&q=cute+puppies+and+kittens+love&oq=cute+puppies+and+kittens+love&gs_l=img.3...4005.5362.0.5576.9.9.0.0.0.0.130.776.7j2.9.0....0...1c.1.64.img..0.3.246...0i8i30k1j0i19k1.0.VJo0b64lIGg">&#x2764</a>
	by 
	<a href="https://notabug.org/HackedPixels/hackedpixelsweb">
		him
	</a> with support from 
	<a href="">
		this
	</a>
	and 
	<a href="">
		that
	</a>
	<br>
		All content on this website is released under GPL3 unless stated otherwise.
	</h6>
</footer>
</div>
</body>
</html>
